package org.slf4j.impl;

import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;

public class StaticLoggerBinder implements LoggerFactoryBinder {

    private static ILoggerFactory loggerFactory = new YetAnotherLoggerFactory();
    private static final StaticLoggerBinder BINDER = new StaticLoggerBinder();

    public static StaticLoggerBinder getSingleton() {
        return BINDER;
    }

    @Override
    public ILoggerFactory getLoggerFactory() {
        return loggerFactory;
    }

    @Override
    public String getLoggerFactoryClassStr() {
        return loggerFactory.getClass().getName();
    }

}
